// #include "Term.h"

Term::Term(){}

Term::Term(const Term &pt): Course_list(pt.Course_list){}

Term::Term(const int number, const CourseItem* pt)
{
	for (int i = 0; i < number; i++) 
		Course_list.push_back(pt[i]);
}

void Term::insert(const CourseItem pt)
{
	Course_list.push_back(pt);

	return ;
}

bool Term::del(int number)
{
	return Course_list.remove(number);
}

int Term::size()
{
	int temp = Course_list.size();
	return temp;
}

CourseItem& Term::operator[](const int pos)
{
	return Course_list[pos];
}
